/**************************************************************************
 *
 *   Copyright 2010 American Public Media Group
 *
 *   This file is part of AIR2.
 *
 *   AIR2 is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   AIR2 is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with AIR2.  If not, see <http://www.gnu.org/licenses/>.
 *
 *************************************************************************/

/* AIR2 fixtures. Standard lookup tables, etc. */

Ext.ns('AIR2.Fixtures');

AIR2.Fixtures.States = {
    "AL"        :"Alabama",
    "AK"        :"Alaska",
    "AB"        :"Alberta",
    "AS"        :"American Samoa",
    "AZ"        :"Arizona",
    "AR"        :"Arkansas",
    "BC"        :"British Columbia",
    "CA"        :"California ",
    "CO"        :"Colorado ",
    "CT"        :"Connecticut",
    "DE"        :"Delaware",
    "FM"        :"Federated States Of Micronesia",
    "FL"        :"Florida",
    "GA"        :"Georgia",
    "GU"        :"Guam ",
    "HI"        :"Hawaii",
    "ID"        :"Idaho",
    "IL"        :"Illinois",
    "IN"        :"Indiana",
    "IA"        :"Iowa",
    "KS"        :"Kansas",
    "KY"        :"Kentucky",
    "LA"        :"Louisiana",
    "ME"        :"Maine",
    "MB"        :"Manitoba ",
    "MH"        :"Marshall Islands",
    "MD"        :"Maryland",
    "MA"        :"Massachusetts",
    "MI"        :"Michigan",
    "MN"        :"Minnesota",
    "MS"        :"Mississippi",
    "MO"        :"Missouri",
    "MT"        :"Montana",
    "NE"        :"Nebraska",
    "NV"        :"Nevada",
    "NB"        :"New Brunswick",
    "NH"        :"New Hampshire",
    "NJ"        :"New Jersey",
    "NM"        :"New Mexico",
    "NY"        :"New York",
    "NL"        :"Newfoundland and Labrador",
    "NC"        :"North Carolina",
    "ND"        :"North Dakota",
    "MP"        :"Northern Mariana Islands",
    "NT"        :"Northwest Territories ",
    "NS"        :"Nova Scotia ",
    "NU"        :"Nunavut ",
    "OH"        :"Ohio",
    "OK"        :"Oklahoma",
    "ON"        :"Ontario ",
    "OR"        :"Oregon",
    "PW"        :"Palau",
    "PA"        :"Pennsylvania",
    "PE"        :"Prince Edward Island",
    "PR"        :"Puerto Rico",
    "QC"        :"Quebec",
    "RI"        :"Rhode Island",
    "SK"        :"Saskatchewan",
    "SC"        :"South Carolina",
    "SD"        :"South Dakota",
    "TN"        :"Tennessee",
    "TX"        :"Texas",
    "UT"        :"Utah",
    "VT"        :"Vermont",
    "VI"        :"Virgin Islands",
    "VA"        :"Virginia",
    "WA"        :"Washington",
    "DC"        :"Washington DC",
    "WV"        :"West Virginia",
    "WI"        :"Wisconsin",
    "WY"        :"Wyoming",
    "YT"        :"Yukon"
};

AIR2.Fixtures.Countries = {
    "AF" : "Afghanistan", 
    "AL" : "Albania", 
    "DZ" : "Algeria", 
    "AS" : "American Samoa", 
    "AD" : "Andorra", 
    "AO" : "Angola", 
    "AI" : "Anguilla Islands", 
    "AQ" : "Antarctica", 
    "AG" : "Antigua", 
    "AR" : "Argentina", 
    "AM" : "Armenia", 
    "AW" : "Aruba", 
    "AC" : "Ascension", 
    "AU" : "Australia", 
    "AT" : "Austria", 
    "AZ" : "Azerbaijan", 
    "AB" : "Azores", 
    "BS" : "Bahamas", 
    "BH" : "Bahrain", 
    "BD" : "Bangladesh", 
    "BB" : "Barbados", 
    "BK" : "Barbuda", 
    "BL" : "Belarus", 
    "BE" : "Belgium", 
    "BZ" : "Belize", 
    "BJ" : "Benin", 
    "BM" : "Bermuda", 
    "BT" : "Bhutan", 
    "BO" : "Bolivia", 
    "BC" : "Bonaire", 
    "BA" : "Bosnia Hercegovina", 
    "BW" : "Botswana", 
    "BV" : "Bouvet Island", 
    "BR" : "Brazil", 
    "IO" : "British Indian Ocean Territory", 
    "VG" : "British Virgin Islands", 
    "BN" : "Brunei", 
    "BG" : "Bulgaria", 
    "BF" : "Burkina (Upper Volta)", 
    "BU" : "Burma (Myanmar)", 
    "BI" : "Burundi", 
    "KH" : "Cambodia", 
    "CM" : "Cameroon", 
    "CA" : "Canada", 
    "CD" : "Canary Islands", 
    "CV" : "Cape Verde", 
    "KY" : "Cayman Islands", 
    "CF" : "Central African Republic", 
    "TD" : "Chad", 
    "CE" : "Channel Islands", 
    "CL" : "Chile", 
    "CN" : "China, People's Republic Of", 
    "CX" : "Christmas Islands", 
    "CC" : "Cocos (Keeling) Islands", 
    "CO" : "Colombia", 
    "KM" : "Comoros", 
    "CG" : "Congo", 
    "CP" : "Congo, Democratic Republic Of", 
    "CK" : "Cook Islands", 
    "CS" : "Corsica", 
    "CR" : "Costa Rica", 
    "HR" : "Croatia", 
    "CU" : "Cuba", 
    "AN" : "Curacao", 
    "CY" : "Cyprus", 
    "CZ" : "Czech Republic", 
    "DK" : "Denmark", 
    "DJ" : "Djibouti", 
    "DM" : "Dominica", 
    "DO" : "Dominican Republic", 
    "DB" : "Dubai", 
    "EA" : "East Timor", 
    "EC" : "Ecuador", 
    "EG" : "Egypt", 
    "SV" : "El Salvador", 
    "GQ" : "Equatorial Guinea", 
    "ER" : "Eritea", 
    "EE" : "Estonia", 
    "ET" : "Ethiopia", 
    "FK" : "Falkland Islands", 
    "FS" : "Farkistan", 
    "FO" : "Faroe Islands", 
    "FG" : "Fiji", 
    "FI" : "Finland", 
    "FR" : "France", 
    "FX" : "France, Metropolitan", 
    "GF" : "French Guiana", 
    "PF" : "French Polynesia", 
    "TF" : "French Southern Territories", 
    "GA" : "Gabon", 
    "GM" : "Gambia", 
    "GE" : "Georgia", 
    "DE" : "Germany", 
    "GH" : "Ghana", 
    "GI" : "Gilbraltar", 
    "GR" : "Greece", 
    "RG" : "Greenland", 
    "GC" : "Grenada", 
    "GL" : "Guadeloupe", 
    "GU" : "Guam", 
    "GT" : "Guatemala", 
    "GS" : "Guernsey", 
    "GN" : "Guinea", 
    "GW" : "Guinea Bissau", 
    "GY" : "Guyana", 
    "HT" : "Haiti", 
    "HM" : "Heard and McDonald Islands", 
    "HN" : "Honduras", 
    "HK" : "Hong Kong", 
    "HU" : "Hungary", 
    "IS" : "Iceland", 
    "IN" : "India", 
    "ID" : "Indonesia", 
    "IR" : "Iran", 
    "IQ" : "Iraq", 
    "IE" : "Ireland", 
    "IL" : "Israel", 
    "IT" : "Italy", 
    "CI" : "Ivory Coast", 
    "JM" : "Jamaica", 
    "JP" : "Japan", 
    "JE" : "Jersey", 
    "JO" : "Jordan", 
    "KA" : "Kampuchea", 
    "KZ" : "Kazakhstan", 
    "KE" : "Kenya", 
    "KI" : "Kiribati", 
    "KP" : "Korea, North", 
    "KR" : "Korea, South", 
    "KS" : "Kosrae", 
    "KW" : "Kuwait", 
    "KG" : "Kyrgystan", 
    "LA" : "Laos", 
    "SU" : "Latvia", 
    "LB" : "Lebanon", 
    "LS" : "Lesotho", 
    "LR" : "Liberia", 
    "LY" : "Libya", 
    "LI" : "Liechtenstein", 
    "LT" : "Lithuania", 
    "LU" : "Luxembourg", 
    "MO" : "Macau", 
    "MK" : "Macedonia", 
    "MG" : "Madagascar", 
    "MI" : "Madeira Islands", 
    "MW" : "Malawi", 
    "MY" : "Malaysia", 
    "MV" : "Maldives", 
    "ML" : "Mali", 
    "MT" : "Malta", 
    "MH" : "Marshall Islands", 
    "MQ" : "Martinique", 
    "MR" : "Mauritania", 
    "MB" : "Mauritius", 
    "YT" : "Mayotte", 
    "MX" : "Mexico", 
    "FM" : "Micronesia Federated States", 
    "MD" : "Moldavia", 
    "MC" : "Monaco", 
    "ON" : "Mongolian People's Republic", 
    "ME" : "Montenegro", 
    "MF" : "Montserrat", 
    "MJ" : "Morocco", 
    "MZ" : "Mozambique", 
    "NB" : "Namibia", 
    "NU" : "Nauru", 
    "NP" : "Nepal", 
    "NT" : "Netherlands", 
    "NA" : "Netherlands Antilles", 
    "N1" : "Nevis", 
    "NC" : "New Caledonia", 
    "NZ" : "New Zealand", 
    "NI" : "Nicaragua", 
    "NE" : "Niger", 
    "NG" : "Nigeria", 
    "ND" : "Niue", 
    "NF" : "Norfolk Islands", 
    "NM" : "Northern Mariana Islands", 
    "NO" : "Norway", 
    "OM" : "Oman", 
    "PK" : "Pakistan", 
    "PW" : "Palau", 
    "PA" : "Panama", 
    "PG" : "Papua New Guinea", 
    "PY" : "Paraguay", 
    "PE" : "Peru", 
    "PH" : "Philippines", 
    "PN" : "Pitcairn Islands", 
    "PO" : "Pohnpei", 
    "PL" : "Poland", 
    "PP" : "Ponape", 
    "PT" : "Portugal", 
    "PR" : "Puerto Rico", 
    "QA" : "Qatar", 
    "RE" : "Reunion", 
    "RO" : "Romania", 
    "RT" : "Rota", 
    "RU" : "Russia", 
    "RW" : "Rwanda", 
    "SD" : "Saba", 
    "MP" : "Saipan", 
    "SM" : "Samoa Usa", 
    "SO" : "San Marino", 
    "S1" : "Sao Tome and Principe", 
    "SA" : "Saudi Arabia", 
    "ST" : "Scotland", 
    "SN" : "Senegal", 
    "SJ" : "Serbia", 
    "SC" : "Seychelles", 
    "SL" : "Sierra Leone", 
    "SG" : "Singapore", 
    "SK" : "Slovak Republic", 
    "SI" : "Slovenia", 
    "SB" : "Solomon Islands", 
    "OS" : "Somalia", 
    "SF" : "South Africa", 
    "SP" : "South Georgia and South Sandwich Islan", 
    "SQ" : "Soviet Union", 
    "ES" : "Spain", 
    "LK" : "Sri Lanka", 
    "GP" : "St. Barthelemy", 
    "SS" : "St. Christopher", 
    "SX" : "St. Croix", 
    "EU" : "St. Eustatius", 
    "SH" : "St. Helena", 
    "JH" : "St. John", 
    "KN" : "St. Kitts", 
    "LC" : "St. Lucia", 
    "MN" : "St. Maarten", 
    "SW" : "St. Martin", 
    "PM" : "St. Pierre and Miquelon", 
    "HO" : "St. Thomas", 
    "VC" : "St. Vincent and Grenadines", 
    "DS" : "Sudan", 
    "SR" : "Suriname", 
    "JI" : "Svalbard and Jan Mayen Islands", 
    "SZ" : "Swaziland", 
    "SE" : "Sweden", 
    "CH" : "Switzerland", 
    "SY" : "Syria", 
    "TA" : "Tahiti", 
    "TW" : "Taiwan", 
    "TJ" : "Tajikistan", 
    "TZ" : "Tanzania", 
    "TH" : "Thailand", 
    "TI" : "Tinian", 
    "TG" : "Togo", 
    "TK" : "Tokelau", 
    "TO" : "Tonga", 
    "TL" : "Tortola", 
    "TT" : "Trinidad and Tobago", 
    "TS" : "Tristan Da Cunha", 
    "TU" : "Truk", 
    "TN" : "Tunisia", 
    "TR" : "Turkey", 
    "TM" : "Turkmenistan", 
    "TC" : "Turks and Caicos Islands", 
    "TV" : "Tuvala", 
    "UV" : "Tuvalu", 
    "UM" : "U.S. Minor Outlying Islands", 
    "VI" : "U.S. Virgin Islands", 
    "UG" : "Uganda", 
    "UR" : "Ukraine", 
    "UI" : "Union Island", 
    "AE" : "United Arab Emirates", 
    "UK" : "United Kingdom", 
    "US" : "United States", 
    "UY" : "Uruguay", 
    "UZ" : "Uzbekistan", 
    "VU" : "Vanuatu (New Hebrides)", 
    "VA" : "Vatican City State", 
    "VE" : "Venezuela", 
    "VT" : "Vietnam", 
    "VR" : "Virgin Gorda", 
    "WA" : "Wake Island", 
    "GB" : "Wales", 
    "WF" : "Wallis and Futuna Islands", 
    "WI" : "West Indies", 
    "EH" : "Western Sahara", 
    "WS" : "Western Samoa", 
    "YA" : "Yap", 
    "YE" : "Yemen", 
    "YU" : "Yugoslavia", 
    "ZR" : "Zaire", 
    "ZM" : "Zambia", 
    "ZW" : "Zimbabwe (Rhodesia)"
};

// About the src_ vs user_ vs no-prefix fields
// user_*  == an AIR user mapped the value
// src_*   == the source mapped the value, or it is a standard AIR2 column
// no prefix == the source entered free text

AIR2.Fixtures.FieldLabels = {
    'activity_id'               : 'Activity type',
    "birth_year"                : "Birth year",
    'cact_action_detail'        : 'Activity detail',
    'cact_action_notes'         : 'Activity notes',
    'card_value'                : 'Response',
    'cem_email'                 : 'Email',
    'cexp_exp_id'               : 'Expertise',
    'city'                      : 'City',
    "credential"                : "Credential",
    'dob'                       : 'Birth year',
    'email'                     : 'Email',
    "employer"                  : "Employer",
    "ethnicity"                 : "Ethnicity",
    'first_name'                : 'First name',
    'first_responded_date'      : 'First response date',
    'gender'                    : 'Gender',
    "gender"                    : "Gender",
    'gender_source'             : 'Gender - source mapping',
    'gender_text'               : 'Gender - source text',
    "job_title"                 : "Job Title",
    'last_activity_date'        : 'Last activity date',
    'last_contacted_date'       : 'Last contacted date',
    'last_name'                 : 'Last name',
    'last_responded_date'       : 'Last response date',
    'outgoing_activity_text'    : 'Question', // not used?
    'pin_status'                : 'PIN status',
    'political_affiliation' : 'Political affiliation',
    'political_offices'         : 'Political offices',
    'pref_lang'                 : 'Preferred language',
    'preferred_language'        : 'Preferred language',
    "primary_email"             : "Email",
    "primary_location"          : "Location",
    'race'                      : 'Race',
    'religion'                  : 'Religion',
    "response"                  : "Response",
    "source_website"            : "Website",
    //"specialty"                 : "Specialty",
    'srcad_city'                : 'City',
    'srcad_state'               : 'State',
    'srcad_zip'                 : 'ZIP Code',
    'src_description'           : 'Analyst notes',
    'src_education_level'       : 'Education level',
    'src_employer'              : 'Employer',
    //'src_experiences'           : 'Experiences',
    'src_first_name'            : 'First name',
    'src_household_income'      : 'Household income',
    //'src_interests'             : 'Interests',
    'src_last_name'             : 'Last name',
    'src_login_name'            : 'Username',  // in AIR1 always same as primary email
    //'src_organizations'         : 'Organizations',
    //'src_passions'              : 'Passions',
    'src_political_affiliation' : 'Political affiliation',
    'src_prof_title'            : 'Title',
    'src_race_source'           : 'Race - source mapping',
    'src_religion_source'       : 'Religion - source mapping',
    'src_specialization'        : 'Specialization',
    'src_uuid'                  : 'UUID',
    'state'                     : 'State',
    'user_race_text'            : 'Race',
    "user_religion"             : "Religion",
    'user_gender'               : 'Gender',
    'user_ethnicity'            : 'Ethnicity',
    'valid_email'               : 'Valid email address',
    'zip'                       : 'ZIP Code'



};

